package com.rock.code.bigdata.bigdatainterface.service.impl;


import com.rock.code.bigdata.bigdatainterface.dao.AlarmDataDao;
import com.rock.code.bigdata.bigdatainterface.domain.TbAtoEventFinalHis;
import com.rock.code.bigdata.bigdatainterface.service.AlarmDataService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;


@Service
public class AlarmDataServiceImpl implements AlarmDataService {

    @Resource
    private AlarmDataDao alarmDataDao;

    @Override
    public void saveAlarmData(TbAtoEventFinalHis tbAtoEventFinalHis) {
        alarmDataDao.insertAlarmData(tbAtoEventFinalHis);
    }

    @Override
    public String queryKpiByName(String metricName) {
        return alarmDataDao.selectKpiByName(metricName);
    }
}
